﻿using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Activation;
using Acaweb.Common;
using Acaweb.Model.Entities;
using Acaweb.Servicios.Contracts;
using Components = Acaweb.Componentes.Contracts;

namespace Acaweb.Servicios.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class RepresentantesService : IRepresentantesService
    {
        Components.IRepresentantesService _RepresentanteComponent = AppCtx.Resolve<Components.IRepresentantesService>();

        public void Create(Representantes Representante)
        {
            _RepresentanteComponent.Create(Representante);
        }

        public List<Representantes> GetAll()
        {
            return _RepresentanteComponent.GetAll().ToList();
        }

        public Dictionary<Representantes, int> GetResult()
        {
            return _RepresentanteComponent.GetResult();
        }

        public List<Representantes> GetByFacultad(int Facultad)
        {
            return _RepresentanteComponent.GetByFacultad(Facultad).ToList();
        }

        public List<Representantes> GetDocente()
        {
            return _RepresentanteComponent.GetDocentes().ToList();
        }
    }
}